<!DOCTYPE html>
<html>

<head>

    <style>

        body{
            width: 1200px;
            margin: auto;
        }

        body * {
            box-sizing: border-box;
            font-family: "Gill Sans", sans-serif;
        }

        header {
            background: no-repeat;
            background-image: linear-gradient(to right, rgb(148, 94, 235, 0.9), rgba(148, 94, 235, 0.6)), url('4.jpeg');
            background-size: cover;
            background-position: center;
            height: 300px;
            padding: 1rem;
            /* border: 1px rgb(148, 94, 235, 0.9) solid; */
        }

        header * {
            text-transform: uppercase;
            color: white;
            font-weight: 700;
            font-family: "Gill Sans", sans-serif;
            font-size: 14px;

        }

        #top-line :nth-child(1) {
            padding: 0.25rem;
            background-color: #fff;
            color: rgb(148, 94, 235, 1);

        }

        /* #top-line :last-child::after {
            content: url("./三横.png");
            margin-left: 1em;
            display: inline-block;
            width: 12px;
            height: 12px;
        } */

        #top-line :last-child {
            float: right;
            width: 7%;
            background: transparent no-repeat center right url("三横.png");
            /* padding-right: 12px; */
            background-size: 1.5rem 1rem;
        }

        #top-line {
            margin: 0;
            letter-spacing: 2px;
        }

        #head-title {
            margin: 3rem;
            width: auto;
            letter-spacing: 1px;
        }

        #head-title h1 {
            padding: 1rem 0;
            border-bottom: 2px solid white;
            font-size: 30px;
            font-weight: 700;
            width: auto;
            margin: 0;
            text-transform: none;
        }

        #head-title p {
            width: 35%;
            text-transform: uppercase;
            font-size: 12px;
            margin: 2rem 0;
        }

        main> :nth-child(2n) {
            height: 350px;
            background-color: rgb(41, 57, 73);
        }

        main> :nth-child(2n+1) {
            height: 350px;
            background-color: rgb(50, 70, 90);
        }

        main img{
            width: 40%;
            height: 350px;
        }        
        
        main article {
            color: white;
            /* create BFC or using margin-left*/
            overflow: hidden;
            width: auto;
            padding: 2rem;
        }

        main :nth-child(2n+1) img {
            float: left;
        }

        main :nth-child(2n) img {
            float: right;
        }

        article h2 {
            border-bottom: 2px solid white;
            padding: .5rem;
            width: max-content;
        }

        article p{
            line-height: 1.5rem;
            margin: 2rem 0;
            max-height: 6rem;
            overflow: hidden;
        }

        article a {
            color: white;
            border: 2px solid white;
            padding: 1rem;
            text-transform: uppercase;
            font-size: .5rem;
            font-weight: 700;
            text-decoration: none;
            letter-spacing: 1px;
            display: inline-block;
        }

        footer{
            background-color: rgb(36, 50, 65);
            height: 100px;
            color: rgb(95, 90, 90);
            font-size: 12px;
            font-family: "Gill Sans", sans-serif;
            padding: 4rem 2rem;
        }

        footer p{
            margin: 0;
        }

        footer p :first-child::after{
            content: "";
            border: .5px solid rgb(95, 90, 90);
            width: 0;
            margin: 0 1rem;
        }

        footer p :last-child{
            border-bottom: 1px solid rgb(95, 90, 90);
        }


    </style>
</head>

<body>
    <header>
        <div id="top-line">
            <span>forty</span>
            <span>by HTML5 up</span>
            <span>menu</span>
        </div>

        <div id="head-title">
            <h1>Landing</h1>
            <p>lorem ipsum dolor sit amet nulla, cpmseqiat sed verperps. tempus adipiscing nulla.</p>
        </div>
    </header>
    <main>
        <section>
            <img src="1.jpeg">
            <article>
                <h2>Orci maecenas</h2>
                <p>If the left box is small enough, it shows two box side by side. If the left box is too long then the
                    right box will drop a line which I don't want that behavior. I would like to set the right box to
                    where it is no matter how long is the left box. Please help!!!!!</p>
                <a href="#">learn more</a>
            </article>
        </section>
        <section>
            <img src="2.jpeg">
            <article>
                <h2>Rhoncus magna</h2>
                <p>If the left box is small enough, it shows two box side by side. If the left box is too long then the
                    right box will drop a line which I don't want that behavior. I would like to set the right box to
                    where it is no matter how long is the left box. Please help!!!!!</p>
                <a href="#">learn more</a>
            
        </section>
        <section>
            <img src="3.jpeg">
            <article>
                <h2>Sed nunc ligula</h2>
                <p>If the left box is small enough, it shows two box side by side. If the left box is too long then the
                    right box will drop a line which I don't want that behavior. I would like to set the right box to
                    where it is no matter how long is the left box. Please help!!!!!</p>
                <a href="#">learn more</a>
            </article> 
        </section>
        <section>
            <article>
                <h2>Massa libero</h2>
                <p>If the left box is small enough, it shows two box side by side. If the left box is too long then the
                    right box will drop a line which I don't want that behavior. I would like to set the right box to
                    where it is no matter how long is the left box. Please help!!!!!</p>
                <a href="#">learn more</a>
            </article> 
        </section>
    </main>
    <footer>
        <p>
            <span>&copy; Untitle</span>
            <span>Design:</span>
            <span> HTML5 UP</span>
        </p>
        
    </footer>
</body>

</html>